package homework02;

public class ThrowDemo {
    public static void main(String[] args) {
        Student zz=new Student();
        try {
            zz.setAge(1000);
            System.out.println("年龄为:"+zz.getAge());
        }catch (Exception e){
            System.out.println("不合法");
        }
    }
}
